if not SYSPATH then return end
    -----------------------------------------
    --IP提示界面
    -----------------------------------------
    local M  	        = class("waringIp",PanelInner)
    local model         = app.gamesUse("model")
    local model_hall    = app.model("hall")
    
    function M:ctor(param)
        self.class.super.ctor(self)
        self:init()
    end
    
    function M:onEnter()
        self.class.super.onEnter(self)
    end
    
    function M:onExit()
    end
    
    function M:init()
        local main = cc.CSLoader:createNode("zjh/res/waringIp.csb")
        self:addChild(main,999)
        Adaptive(main).h()
        local arr = model.roomData._list
        local uid = model_hall.Uid.get()
        local indx = 1
        local offIdx = 1
        local offPosx = 0
        if #arr - 1 == 2 then
            indx = 2
            offIdx = 2
        elseif #arr - 1 == 3 then 
            indx = 1
            offIdx = 2
        elseif #arr - 1  == 4 then 
            indx = 1
            offIdx = 1
            offPosx = 132/2
        end
        
        local ipData = {}
        local idxs = 0
        for k,v in pairs(arr) do
            if uid ~= v.Uid then
                if ipData[v.IP] then
                    table.insert( ipData[v.IP], v.Uid)
                else
                    idxs = idxs + 1
                    ipData[v.IP] = {idx = #ipData + idxs}
                    table.insert( ipData[v.IP], v.Uid)
                end
            end
        end
        for k,v in pairs(arr) do
            if uid ~= v.Uid then
                local cell = cc.uiloader:seekNodeByName(main,"player_" .. indx)
                cell:setVisible(true)
                indx = indx + offIdx
                if offPosx ~= 0 then
                    cell:setPositionX(cell:getPositionX() + offPosx)
                end
                local sp = cc.Sprite:create()
                sp:setPosition(cc.p(46,46))
                cell:addChild(sp)
                HttpRequest.image(v.FaceUrl,sp,94,function(code)  end)
                cc.uiloader:seekNodeByName(cell,"txt_name"):setString(v.name)
                if #ipData[v.IP] > 1 then
                    local bol = false
                    local idx = 0
                    for k1,v1 in pairs(ipData[v.IP]) do
                        if v1 == v.Uid then
                            bol = true
                            idx = ipData[v.IP].idx
                        end
                    end
                    if bol and idx > 0 then
                        local tagSp = cc.Sprite:create("zjh/res/waringIP/ip" .. idx .. ".png")
                        tagSp:setPosition(cc.p(46,46))
                        cell:addChild(tagSp)
                    end
                end
            end
        end
        cc.uiloader:seekNodeByName(main,"btn_yes"):addTouchEventListener(function (obj,e)
            if e == ccui.TouchEventType.ended then
                game.view.back("common.waringIp","zjh")
            end
        end)
    end
    
    return M